package mypackage

// Function sum calculates summary of all nums given.
func Sum(nums ...float64) float64 {
	var total float64

	for _, num := range nums {
		total += num
	}

	return total
}

// Function mulsum calculates multiply result of all nums given
func Mulsum(nums ...float64) float64 {
	var total float64 = 1

	for _, num := range nums {
		total *= num
	}

	return total
}
